@import "base";
@import "variables";

//input共用样式
body{
  background: @background;
}
input[type="text"],
input[type="password"],
select {
  height: 40px;
  line-height: 40px;
  font-size: @font-size-base;
  color: @main-font;
  .border(1px; @tips-font);
  box-sizing: border-box;
  .border-radius(@border-radius-small);
  vertical-align: middle;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 0 10px;
}

input[readonly] {
  &:focus {
    .border(1px; @tips-font);
  }
}

select {
  width: 100%;
  //background: url("../images/select_up.png") 96.8%  center no-repeat #fff;
  &:focus {
    .border(1px; @border-color);
  }
}

input[type="button"],
input[type="submit"] {
  height: 30px;
  line-height: 30px;
  color: @main-font;
  border: none;
  .border-radius(@border-radius-large);
  font-size: @font-size-base;
  font-family: 'Microsoft YaHei';
  min-width: 90px;
  padding: 0 5px;
  background-color: @main-color;
  cursor: pointer;
  &.ph_noBor {
    border-left: none;
  }
  &.provingTxt {
    display: inline-block;
    .size(100px; 26px);
    line-height: 26px;
    margin-top: 6px;
    border-left: 1px solid #dfdfdf;
    text-align: center;
    color: @main-color;
    font-size: @font-size-base;
    background: none;
    .border-radius(0);
  }
}

button {
  border: none;
  background: none;
}
a,a:hover,a:link,a:visited,a:active{
  color: @main-font;
}
//列表
.ph_wareBox {
  background: @card-bg;
  margin-top: 20px;
  .ph_wareList {
    .size(100%; auto);
    table-layout: fixed;
    margin: 0 auto;
    tr th,
    tr td {
      font-size: @font-size-base;
      color: @main-font;
      vertical-align: middle;
      height: 44px;
      line-height: 22px;
      text-align: center;
      .border(1px; @border-color);
      .text-overflow;
      &.ph_tableShow {
        overflow: inherit;
      }
      &.td_input {
        line-height: 67px;
        .relative;
        .formError,
        .formError-text,
        .ph_errorTxt {
          bottom: 0;
        }
      }
      .show-img {
        width: 40px;
        height: 30px;
        cursor: pointer;
        margin: 0 5px;
      }

    }
    tr th {
      background: @lighter-background;
    }

    label.checkbox_ico{
      background-color: @background;
      border-radius: 5px;
      border:1px solid #d3d3d3;
      width:20px;
      height:20px;
      display: inline-block;
      text-align: center;
      vertical-align: middle;
      line-height: 20px;
      padding:0;
      margin:0 5px 2px;
      &.checked_ico,&.checked_ico:after{
        content:"\2714";
        color:@background;
        background-color: @main-color;

      }
    }
    a{
      margin-right: 20px;
      color:@main-color;
      &:hover{
        border-bottom: 1px solid @main-color;
      }
    }
    .wareBox{
      padding:20px 29px 20px 30px;
      &:extend(.clearfix all);
      .wareImg{
        .left;
        .square(80px);
        margin-right: 17px;
      }
      span{
        .left;
        .size(500px;80px);
        white-space: normal;
        display: inline-block;
        text-align: left;
      }
    }
    td.totalPrice{
      color: @auxiliary-color;
    }
  }
  .dataTables_info,
  .dataTables_paginate {
    margin: 10px auto 0 0;
  }
  .dataTables_wrapper {
    margin: 0;
    padding-bottom: 15px;
    display: inline-table;
  }
}


/*
*模块：分页
*时间：20170523
*作者：梁彬
*/
.dataTables_info,
.dataTables_paginate {
  .size(auto; 32px);
  line-height: 32px;
}

.dataTables_info {
  .left;
  display: none!important;
}

.dataTables_paginate {
  .right;
}

.dataTables_paginate {
  a, span {
    display: inline-block;
    float: left;
    cursor: pointer;
    text-decoration: none;
    &.ellipsis {
      .square(30px);
      line-height: 22px;
      text-align: center;
      color: @main-color;
      margin-right: 5px;
    }
  }
  .paginate_button,
  .paginate_active,
  .fg-button {
    .border(1px; @border-color);
    .border-radius(@border-radius-large);
    box-sizing: border-box;
    color: @main-font;
    cursor: pointer;
    margin-right: 5px;
    min-width: 30px;
    height: 32px;
    padding: 0 2px;
    text-align: center;
    text-decoration: none;
    &:hover,
    &.paginate_active,
    &.current_ph,
    &.ui-state-disabled {
      color: @background;
      background: @main-color;
      .border(1px; @border-color);
    }
    &.previous,
    &.next,
    &.first,
    &.last {
      .size(80px; 32px);
      &.ui-state-disabled,
      &.paginate_button_disabled,
      &.disabled {
        .border(1px; @border-color);
        color: @tips-font;
      }
    }
  }
  .ui-state-disabled,
  .paginate_button_disabled,
  .disabled {
    cursor: default;
  }
}

.dataTables_wrapper {
  &:extend(.clearfix all);
}
//居中框架
.MainCon{
  .size(1200px;auto);
  margin:0 auto;
}
//顶部Nav
.NavTop{
  .size(100%;30px);
  background: @border-color;
  a,span{
    color:@main-font;
    margin:0 2px;
    line-height: 30px;
    .size(auto;30px);
    display: inline-block;
  }
}
//顶部logo通栏
.header{
  .size(100%;80px);
  background: @main-color;
  img,a,span,input[type="button"]{
    display: inline-block;
    vertical-align: middle;
  }
  img{
    .left;
    .size(117px;40px);
    margin:20px auto 20px 20px;
  }
  a{
    .size(auto;80px);
    line-height: 80px;
    margin-left: 41px;
    font-size: 16px;
    color: @card-bg;
    .relative;
    .left;
    &:after{
      border: solid transparent;
      content: ' ';
      height: 0;
      left: 50%;
      margin-left: -10px;//根据三角形的位置，可以随意更改。
      position: absolute;
      width: 0;
      border-width: 10px;
      border-bottom-color: #fff;
      bottom:0;
    }
  }
  input[type="button"]{
    .right;
    border:none;
    .size(160px;40px);
    background:url("../images/icon_order.png") 39px center no-repeat;
    -webkit-background-size: 16px 20px;
    background-size: 16px 20px;
    background-color: @background;
    margin:20px 40px 20px auto;
    padding-left: 39px;
    color: @auxiliary-color;
    font-size: 14px;
    line-height: 40px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
  }
  //登录页面头部
  &.loginHeader{
    .size(100%;90px);
    background: @card-bg;
    img{
      .size(127px;43px);
      margin:25px 8px auto 10px;
    }
    span{
      font-size: 18px;
      color: #3f3f3f;
      margin-top: 49px;
    }
  }
}
//底部footer
.footer{
  .size(100%;118px);
  background: @border-color;
  padding-top: 52px;
  .MainCon{
    text-align: center;
    p{
      margin:6px auto;
    };
  }
  &.loginFooter{
    .size(100%;180px);
    background:@card-bg;
    a{
      display: inline-block;
      vertical-align: middle;
      margin-right: 20px;
    }
  }
}
//中间主体部分
.MainContent{
  .size(100%;auto);
  background: @background;
  padding-bottom: 90px;
  //左侧导航菜单
  .leftNav{
    margin:20px 20px auto 0;
    .size(120px;auto);
    background: @card-bg;
    padding:1px 20px 6px;
    .left;
    h3,ul{
      padding-left: 20px;
    }
    hr{
      .size(120px;1px);
      margin:16px 0;
      background: @border-color;
    }
    h3{
      margin:21px 0 0;
      font-size: @font-size-base;
    }
    ul{
      margin:22px 0 16px;
      li{
        margin-bottom: 15px;
        a.active{
          color: @main-color;
        }
      }
    }
  }
  //面包屑
  .Nav_Group{
    .size(100%;14px);
    font-size: 14px;
    line-height: 14px;
    margin-top: 20px;
    .Navigation_vertical{
      .size(2px;14px);
      display: inline-block;
      vertical-align: middle;
      background:@main-color;
    }
    .Navigation{
      vertical-align: middle;
      display: inline-block;
      margin:0 5px;
    }
    a.Navigation:hover{
      color:@main-color;
    }
  }
  //右边主体
  .rightBody{
    .size(1020px;auto);
    .left;

    //状态分类菜单
    .tab_Group {
      .size(100%;39px);
      margin:28px 0 20px;
      &:extend(.clearfix all);
      border-bottom: 1px solid @tips-font;
      a{
        .left;
        .size(89px;39px);
        display: inline-block;
        vertical-align: middle;
        line-height: 39px;
        font-size: 14px;
        text-align: center;
        .relative;
        &.active{
          border-bottom:1px solid @main-color;
          z-index: 1001;
          color:@main-color;
        }
      }
      .space_line{
        .left;
        .size(1px;14px);
        margin:13px 0;
        background: @tips-font;
        display: inline-block;
        vertical-align: middle;
      }
    }
    //通用提示部分
    .tipsCon{
      .size(100%;432px);
      background: @card-bg;
      margin-top: 20px;
      padding:1px;
      p{
        .size(100%;auto);
        text-align: center;
        font-size: 14px;
        &.tips_Txt{
          margin-top: 168px;
        }
        &.tips_Button{
          margin-top: 30px;
          input[type="button"]{
            .size(200px;40px);
            text-align: center;
            -webkit-border-radius: 2px;
            -moz-border-radius: 2px;
            border-radius: 2px;
            background: @tips-font;
            color: @card-bg;
            &.authenticationBtn{
              background: @main-color;
            }
          }
        }
      }
    }
  }
  //详情页板块卡
  .tabCard{
    .size(100%;auto);
    margin-top: 20px;
    background: @card-bg;
    border: 1px solid @border-color;
    .CardTit{
      .size(1180px;59px);
      line-height: 59px;
      font-size: 14px;
      padding-left: 20px;
      border-bottom: 1px solid @border-color;
      &.moreInfo{
        height: auto!important;
        p{
          margin-bottom: 20px;
        }
        .tips{
          color: @tips-font;
        }
      }

    }
    .OrderStatus{
      .size(1080px;140px);
      line-height: 140px;
      &:extend(.clearfix all);
      padding:0 60px;
      span{
        .left;
        font-size: 24px;
        display: inline-block;
        vertical-align: middle;
        color:@main-font;
      }
      input[type="button"]{
        .right;
        .size(100px;36px);
        font-size: 14px;
        color:@card-bg;
        line-height: 36px;
        display: inline-block;
        vertical-align: middle;
        margin-top: 53px;
      }
    }
    .consigneeInfo{
      .size(1180px;auto);
      padding:30px 60px 60px;
      color:@main-font;
      li{
        margin-bottom: 14px;
        font-size: 14px;
      }
      label{
        .size(97px;auto);
        margin-right: 9px;
        text-align: right;
        display: inline-block;
        text-overflow:ellipsis;
        white-space:nowrap;
      }
    }
    .orderInfo{
      .size(1080px;auto);
      padding:30px 60px 60px;
      &:extend(.clearfix all);
      .infoLeft{
        .left;
        display: inline-block;
        .size(619px;auto);
        .CardTit{
          .size(560px;32px);
          line-height: 14px;
          padding-left: 0;
        }
        .moneySpan{
          color: @auxiliary-color;
        }
        .depositReturn{
          margin-top: 22px;
          font-size: 14px;
        }
        .otherReturn{
          margin-top: 20px;
          font-size: 12px;
          .moneySpan{
            margin-right: 30px;
          }
        }
      }
      .infoRight{
        .left;
        display: inline-block;
        .size(400px;auto);
        padding-left: 60px;
        li{
          margin-bottom: 14px;
          color:@secondary-font;
          font-size: 14px;
          &.current{
            color:@main-font;
            font-weight: bold;
          }
          label{
            .size(80px;auto);
            text-align: right;
            display: inline-block;
            text-overflow:ellipsis;
            white-space:nowrap;
            margin-right: 12px;
          }
        }
      }
    }
  }
  &.loginMainCon{
    padding:1px 0;
    .size(100%;600px);
    background: @login-bg;
    img{
      .left;
      .size(467px;344px);
      margin:132px auto auto 137px;
    }
    .loginBox{
      .left;
      margin:125px auto auto 136px;
      .size(350px;340px);
      background: @background;
      -webkit-border-radius: 2px;
      -moz-border-radius: 2px;
      border-radius: 2px;
      li{
        .size(288px;auto);
        padding:0 31px;
        .relative;
        .errTxt{
          color:@login-err;
          font-size: 12px;
          &.errTxt_hide{
            visibility: hidden;
          }
        }
        .subProvingBox{
          .absolute;
          .size(105px;38px);
          right: 31px;
          top: 0;
          .subProvingBtn{
            color:@main-color;
            padding:0;
            .size(105px;38px);
            border-left: none;
          }
        }
        .tips_txt{
          .absolute;
          display: none;
          top: 38px;
          left:36px;
          color:@tips-font;
          font-size: 12px;
        }
        label {
          color:@tips-font;
          &.check_ico {
            background-color: @background;
            border-radius: 2px;
            border: 1px solid @main-color;
            width: 14px;
            height: 14px;
            display: inline-block;
            text-align: center;
            vertical-align: middle;
            line-height: 14px;
            padding: 0;
            margin: 0 5px 2px;
            &.checked_ico, &.checked_ico:after {
              content: "\2714";
              color: @main-color;
            }
          }
          a{
            color: @main-font;
          }
        }
      }
      input{
        .size(288px;38px);
        border:1px solid @border-color;
        -webkit-border-radius: 2px;
        -moz-border-radius: 2px;
        border-radius: 2px;
        background-size: 20px 25px;
        background-color:@input-bg;
        background-repeat: no-repeat;
        background-position: 14px center;
        padding-left: 57px;
        font-size: 14px;
        &.userInput{
          background-image: url("../images/useicon.png");
        }
        &.passInput{
          background-image: url("../images/lockicon.png");
        }
        &.yzmInput{
          padding-left:29px;
          background-image: url("../images/space_line.png");
          background-position: 181px center;
          background-size: 1px 24px;
        }
        &.loginBtn{
          padding: 0;
          background: @main-color;
          text-align: center;
          font-size: 18px;
          color:@card-bg;
          letter-spacing: 6px;
          -webkit-border-radius: 6px;
          -moz-border-radius: 6px;
          border-radius: 6px;
        }
        &:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
          color: @tips-font; opacity:1;
        }
        &::-moz-placeholder { /* Mozilla Firefox 19+ */
          color: @tips-font;opacity:1;
        }
        &:-ms-input-placeholder{
          color: @tips-font;opacity:1;
        }
        &::-webkit-input-placeholder{
          color: @tips-font;opacity:1;
        }
      }
      p{
        &:extend(.clearfix all);
        a{
          color:@main-color;
        }
        span,.reg_btn{
          .left;
        }
        .forget_btn{
          .right;
          margin-right: 37px;
        }
      }
    }

  }
  .changeTips{
    p{
      .size(100%;auto);
      text-align: center;
      color:@main-color;
      &.changeTips_txt{
        margin-top: 141px;
        font-size: 26px;
      }
      &.Separation_line{
        .size(100%;1px);
        background:@border-color;
        margin-top: 35px;
      }
      &.toLoginBox{
        margin-top: 92px;
        text-align: center;
        .toLogin,.toComplete{
          .size(172px;40px);
          background:@main-color;
          color:@card-bg;
          font-size: 16px;
          text-align: center;
          margin:0 50px;
        }
      }
    }
  }
}

/*
*time :  20180123
*author : liangbin
*model : 完善门店信息
*/
.addInfo{
  background: @card-bg;
  .border(1px; @border-color);
  box-sizing: border-box;
  margin-top: 22px;
  min-height: 440px;
}
.addList {
  .size(98%; auto);
  margin: 0 auto;
  padding: 15px 0;
  li {
    .relative;
    .size(100%; auto);
    min-height: 40px;
    margin-bottom: 24px;
    &:extend(.clearfix all);
    &:last-child {
      margin-bottom: 0;
    }
    .formError,
    .formError-text,
    .ph_errorTxt {
      bottom: -20px;
      color: @err-color;
    }
    label {
      .left;
      .size(120px; 40px);
      line-height: 40px;
      margin-right: 10px;
      font-size: @font-size-base;
      .align(right);
    }
    input[type="text"],
    input[type="password"] {
      .size(300px; auto);
    }
    .dropdown-menu {
      li {
        min-height: auto;
        margin-bottom: 0;
      }
    }
    .bootstrap-select.btn-group:not(.input-group-btn), .bootstrap-select.btn-group[class*="col-"] {
      .size(20%; 40px);
      margin-right: 10px;
      &.returnList {
        .size(60%; 40px);
      }
    }
    .bootstrap-select > .dropdown-toggle {
      height: 40px;
    }
    .addTitle {
      .size(100%; 40px);
      font-size: @font-size-in;
      font-weight: normal;
      line-height: 40px;
      text-indent: 24px;
    }
    //验证码
    .validate{
      .left;
      .size(300px; auto);
      .relative;
    }
    .subProvingBox {
      .absolute;
      right: 1px;
      top: 1px;
      .size(100px; 40px);
      .border-left(1px; @tips-font);
      background: @background;
      .border-right-radius(@border-radius-small);
      .subProvingBtn {
        .size(100px; 40px);
        padding-left: 10px;
        background: none;
        .border-radius(0);
      }
    }
    .infoSubmit{
      .size(200px; 40px);
      line-height: 40px;
      color: @card-bg;
      font-size: @font-size-small;
      .border-radius( @border-radius-small);
    }
    .ExplainTxt{
      .size(460px; 220px);
      padding: 5px;
      font-size: @font-size-base;
      line-height: 24px;
    }
    .ExplainCon{
      font-size: @font-size-small;
      color: @secondary-font;
      line-height: @font-size-large-user;
    }
    .ExplainBg{
      background: @border-color;
    }
    input[type="button"].disabledBtn{
      background: @tips-font;
      cursor: default;
    }
  }
}
//不可编辑状态
.disabled {
  background: @border-color;
}
//公用标注样式
.require {
  display: inline-block;
  color: @err-color;
  margin-right: 5px;
}
//图片上传
.filePhoto,
.filePhoto-show {
  .left;
  .size(80%; auto);
  margin: 0 auto;
  overflow: hidden;
  &.uploadImg {
    .left;
    height: auto;
    max-width: 85%;
    min-width: 85%;
  }
  &.photoIcon {
    .square(120px);
    max-width: 120px;
    min-width: 120px;
  }
  .fileBox {
    .size(200px; 120px);
    .relative;
    .fileImg {
      .absolute;
      top: 0;
      left: 0;
      .size(200px; 120px);
      filter: alpha(opacity=0);
      opacity: 0;
      -moz-opacity: 0;
      -khtml-opacity: 0;
      cursor: pointer;
      z-index: @zindex-navbar;
    }
  }
  .up-section {
    .left;
    .size(200px; 120px);
    .relative;
    .border-radius(@border-radius-large);
    //box-sizing: border-box;
    margin-bottom: @margin-10;
    margin-right: @margin-10;
    .ImgCover {
      .absolute;
      .size(40px; 24px);
      top: 0;
      left: 0;
      line-height: 24px;
      .align(center);
      font-size: @font-size-small;
      margin-right: 0;
      &.hideCover {
        display: none;
      }
    }
    .up-img {
      .square(100%);
      display: block;
      .border-radius(@border-radius-large);
      &.up-opacity {
        opacity: 0;
      }
    }
    .up-span {
      display: block;
      .absolute;
      left: 0;
      bottom: 0;
      .size(100%; 30px);
      background: rgba(0, 0, 0, .5);
      .border-bottom-radius(@border-radius-large);
      z-index: @zindex-modal-background;
    }
    .up-default {
      display: block;
      .absolute;
      left: 0;
      bottom: 0;
      .size(60px; 30px);
      min-width: 60px;
      padding: 0;
      font-size: @font-size-small;
      line-height: 30px;
      .align(center);
      background: none;
      border: none;
      cursor: pointer;
      z-index: @zindex-tooltip;
    }
    .close-upimg {
      display: block;
      .absolute;
      right: 8px;
      bottom: 10px;
      cursor: pointer;
      z-index: @zindex-modal;
    }
    &.loading {
      border: 1px solid #D1D1D1;
      background: url(../images/loading.gif) no-repeat center;
    }
    &.showCover {
      .up-default {
        display: none;
      }
      .hideCover {
        display: block;
      }
    }
  }
}
/*
*model: 现金余额
*
*/
.balanceBox{
  padding: 20px;
  font-size: @font-size-base;
  background: @card-bg;
  margin-top: @margin-20;
  .border(1px; @border-color);
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  &:extend(.clearfix all);
  .balanceCon{
    .left;
    .size(840px; 40px);
    line-height: 40px;
    span{
      font-size: @font-size-large-user;
      color: @auxiliary-color;
      line-height: 40px;
      vertical-align: middle;
    }
  }
  .balanceBtn{
    .right;
    .size(100px; 40px);
    font-size: @font-size-base;
    input[type="button"]{
      color: @card-bg;
      .size(100px; 40px);
    }
  }
}


